# 引入time
import time
import calendar

# 案例1：获取当前时间
# print(time.localtime(time.time()))
# 输出：time.struct_time(tm_year=2024, tm_mon=10, tm_mday=28, tm_hour=20, tm_min=10, tm_sec=47, tm_wday=0, tm_yday=302, tm_isdst=0)


# 案例2：格式化时间
localtime = time.asctime( time.localtime(time.time()) )
# print(localtime) # 输出：Mon Oct 28 20:11:47 2024

# 案例3：获取某月日历
al = calendar.month(20019, 5)
print(al)